#ifndef REGISTER_H
#define REGISTER_H

#include <QWidget>
#include <QUdpSocket>

namespace Ui {
class Register;
}

class Register : public QWidget
{
    Q_OBJECT

public:
    explicit Register(QWidget *parent = nullptr);
    ~Register();

private slots:
    void on_pushButton_clicked();
    void handleServerResponse();

private:
    Ui::Register *ui;
    QUdpSocket *udpSocket;
    QString md5Hash(const QString &data);
};

#endif // REGISTER_H
